<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\Models\Article;
use Faker\Generator as Faker;

$factory->define(Article::class, function (Faker $faker) {
    return [
        'title' => $faker->sentence,
        'desn'  => $faker->bank,
        // 'pic'   => $faker->imageUrl(),
        'pic'   => '/uploads/article/images/' . rand(1, 15) . '.jpg',
        'body'  => $faker->text,
    ];
});
